package cn.com.cym.gamezao.service;

import cn.com.cym.gamezao.base.BaseService;
import cn.com.cym.gamezao.entity.Dict;
import org.springframework.lang.NonNull;

public interface DictService extends BaseService<Dict> {

    /**
     * 根据code查询字典数据
     * @param code code
     * @return  Dict
     */
    Dict getByCode(String code);

    /**
     * 根据code,更新字典
     * @param dict dict
     * @param code code
     * @return Dict
     */
    Dict updateByCode(@NonNull Dict dict,@NonNull String code);
}
